import request from "../utils/request";

const api = {
  login(data: { username: string; password: string }) {
    return request.post("/auth/login", data);
  },
  register(data: { username: string; email: string; password: string }) {
    return request.post("/auth/register", data);
  },
  // 你可以继续添加其他接口
};

export default api;
